
#include <iomanip>

void man1(double EPS){
	int pr = -log10(EPS);
  std::cout << std::fixed;
  std::cout.precision(pr);
}

void print_table_2(std::list<trip_t>& integral_list){
  
  man1(1e-9);

  std::cout << std::left << std::setw(15) << "Interval count\t";
  std::cout << std::left << std::setw(15) << "Error\t";
  std::cout << std::left << std::setw(15) << "Time";

  std::endl(std::cout);

  for(auto i : integral_list){
    std::cout << std::left << std::setw(15) << std::get<0>(i) << "\t";
    std::cout << std::left << std::setw(15) << std::get<1>(i) << "\t";
    std::cout << std::left << std::setw(15) << std::get<2>(i) << "\n";
  }

  std::endl(std::cout);
}

